package com.ctgu.springboot.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.ctgu.springboot.entity.Student;
import com.ctgu.springboot.entity.StudentVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.context.annotation.Primary;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wms
 * @since 2023-02-13
 */
@Mapper
@Primary
public interface StudentMapper extends BaseMapper<Student> {

    IPage<Student> studentPage(IPage<Student> page, @Param(Constants.WRAPPER) Wrapper<Student> wrapper);

    List<Student> getList();

    StudentVO getInfo(Integer sc_id);

    String getTeamName(Integer stu_id);

    String getTeam(String stu_name);


}
